<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>24布局技巧3</title>
    <style>
      .outer {
        width: 400px;
        height: 400px;
        background-color: orange;
        text-align: center;
        line-height: 400px;
      }

      img {
        width: 100px;
        vertical-align: middle;
        border-radius: 50%;
      }

      span {
        vertical-align: middle;
      }
    </style>
  </head>
  <body>
    <!-- 可以像处理文本一样取处理行内元素，或者行内块在父元素中对齐 -->
    <div class="outer">
      <span>Nodejsx + React</span>
      <img src="../../imgs/IMG_3124.jpeg" alt="" />
    </div>
  </body>
</html>
